package com.example.w.common.util;

import com.example.w.common.pojo.TypeNum;

import java.util.List;
import java.util.ResourceBundle;

public class Utils {
    public static boolean isMenuItemCombo(TypeNum typeNum) {
        return typeNum == TypeNum.COMBO;
    }
    public static boolean isEmpty(List list) {
        return list == null || list.size() == 0;
    }
    public static boolean isEmpty(long[] array) {
        return array == null || array.length == 0;
    }
    public static boolean isEmpty(String str) {
        return str == null || str.length() == 0;
    }
    public static ResourceBundle getResourceBundle(String url) {
        return ResourceBundle.getBundle(url);
    }
}
